import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import styles from './PayButton.module.less'
// 订单的每一项
class PayButton extends Component {
    constructor(props) {
        super(props)
        this.state = {}
    }
    render() {
        return (
            <div className={styles.container}>
                <div className={styles.price}>
                    <span>总价格：</span>
                    <p>¥{this.props.totalPrice}</p>
                </div>
                <Link to="/PaySuccess">
                    <div className={styles.payButton}>结 算</div>
                </Link>
            </div>
        )
    }
}

export default PayButton;
